package com.pig4cloud.pig.village.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 死亡状态
 * @author Will Hu
 * @date 2022.3.26
 */
@Getter
public enum Status {
	YES(0, "是"),
	NO(1, "否"),;

	Status(int code, String description) {
		this.code = code;
		this.description = description;
	}

	@EnumValue
	@JsonValue
	private final int code;
	private final String description;
}